﻿  <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
   <h1 class="page-header">已安装客户信息</h1>
   <h6><button class="btn btn-success btn-xs khdisabled" data-toggle="modal" data-target="#kh_add_kd"><span class="glyphicon glyphicon-plus-sign"></span> 添加已安装客户信息</button></h6>
   <div class="modal fade" id="kh_add_kd" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
     <div class="modal-content">
      <div class="modal-header">
       <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
       <h4 class="modal-title" id="myModalLabel"><span class="glyphicon glyphicon-plus-sign"></span> 添加已安装客户信息</h4>
      </div>
      <div class="modal-body">
       <form class="form-horizontal" role="form" method="post">
       <div class="form-group">
         <label for="inputEmail3" class="col-sm-2 control-label">帐号</label>
         <div class="col-sm-10">
          <div class="input-group">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-user"></span>
           </div>
           <input type="text" placeholder="帐号" class="form-control" id="kd_kh_add_account" />
          </div>
         </div>
        </div>
        <div class="form-group">
         <label for="inputEmail3" class="col-sm-2 control-label">身份证</label>
         <div class="col-sm-10">
          <div class="input-group">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-user"></span>
           </div>
           <input type="text" placeholder="身份证号码" class="form-control" id="kd_kh_add_cid" />
          </div>
         </div>
        </div>
        <div class="form-group">
         <label for="inputEmail3" class="col-sm-2 control-label">名字</label>
         <div class="col-sm-10">
          <div class="input-group">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-user"></span>
           </div>
           <input type="text" placeholder="客户名字" class="form-control" id="kd_kh_add_name" />
          </div>
         </div>
        </div>
        <div class="form-group">
         <label for="inputPassword3" class="col-sm-2 control-label">手机号</label>
         <div class="col-sm-10">
          <div class="input-group">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-phone"></span>
           </div>
           <input type="text" placeholder="客户手机" class="form-control" id="kd_kh_add_call" />
          </div>
         </div>
        </div>
        <div class="form-group">
         <label for="inputPassword3" class="col-sm-2 control-label">社区名</label>
         <div class="col-sm-10">
          <div class="input-group">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-home"></span>
           </div>
           <input type="text" placeholder="社区名" class="form-control" id="kd_kh_add_addr2" />
          </div>
         </div>
        </div>
        <div class="form-group">
         <label for="inputPassword3" class="col-sm-2 control-label">详细地址</label>
         <div class="col-sm-10">
          <div class="input-group">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-home"></span>
           </div>
           <input type="text" placeholder="详细地址" class="form-control" id="kd_kh_add_addr" />
          </div>
         </div>
        </div>
        <div class="form-group">
         <label for="inputPassword3" class="col-sm-2 control-label">安装时间</label>
         <div class="col-sm-10">
          <div class="input-group">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-calendar"></span>
           </div>
            <div class="disabled">
             <input type="text" data-toggle="tooltip" data-placement="left" title="点击解锁" placeholder="安装时间" class="form-control" id="kd_kh_add_time"  value="<?php echo date('Y-m-d H:i',time()); ?>" />
            </div>
          </div>
         </div>
        </div>
        <div class="form-group">
         <label for="inputPassword3" class="col-sm-2 control-label">到期时间</label>
         <div class="col-sm-10">
          <div class="input-group">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-calendar"></span>
           </div>
            <div class="disabled">
             <input type="text" class="form-control" id="kd_kh_add_otime" placeholder="到期时间" value="" />
            </div>
          </div>
         </div>
        </div>
        <div class="form-group">
         <label for="inputPassword3" class="col-sm-2 control-label">宽带速率(M)</label>
         <div class="col-sm-10">
          <div class="input-group">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-signal"></span>
           </div>
           <input type="text" placeholder="速率" class="form-control" id="kd_kh_add_speed" />
          </div>
         </div>
        </div>
        <div class="form-group">
         <label for="inputPassword3" class="col-sm-2 control-label">ONU - MAC</label>
         <div class="col-sm-10">
          <div class="input-group">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-barcode"></span>
           </div>
           <input type="Texi" class="form-control" id="kd_kh_add_onu_mac" placeholder="ONU(MAC地址)">
          </div>
         </div>
        </div>
        <div class="form-group">
         <label for="inputPassword3" class="col-sm-2 control-label">ONU - SN</label>
         <div class="col-sm-10">
          <div class="input-group">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-barcode"></span>
           </div>
           <input type="Texi" class="form-control" id="kd_kh_add_onu_sn" placeholder="ONU(SN序列号)">
          </div>
         </div>
        </div>
        <div class="form-group">
         <label for="inputPassword3" class="col-sm-2 control-label">ONU - Z</label>
         <div class="col-sm-10">
          <div class="input-group">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-barcode"></span>
           </div>
           <input type="Texi" class="form-control" id="kd_kh_add_onu_z" placeholder="ONU(资产号)">
          </div>
         </div>
        </div>
        <div class="form-group">
         <label for="inputPassword3" class="col-sm-2 control-label">POE - SN</label>
         <div class="col-sm-10">
          <div class="input-group">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-barcode"></span>
           </div>
           <input type="Texi" class="form-control" id="kd_kh_add_poe_sn" placeholder="POE(SN序列号)">
          </div>
         </div>
        </div>
        <div class="form-group">
         <label for="inputPassword3" class="col-sm-2 control-label">POE - Z</label>
         <div class="col-sm-10">
          <div class="input-group">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-barcode"></span>
           </div>
           <input type="Texi" class="form-control" id="kd_kh_add_poe_z" placeholder="POE(资产号)">
          </div>
         </div>
        </div>
        <div class="form-group">
            <label for="inputPassword3" class="col-sm-2 control-label">大麦</label>
                <div class="col-sm-10">
                    <div class="input-group">
                        <div class="input-group-addon">
                            <span class="glyphicon glyphicon-th-list"></span>
                        </div>
                        <select class="form-control" id="kd_kh_add_domybox" placeholder="">
                            <option>无</option>
                            <option>有</option>
                        </select>
                    </div>
                </div>
        </div>
        <div class="form-group">
         <label for="inputPassword3" class="col-sm-2 control-label">大麦 - MAC</label>
         <div class="col-sm-10">
          <div class="input-group">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-barcode"></span>
           </div>
           <input type="Texi" class="form-control" id="kd_kh_add_domybox_mac" placeholder="大麦(MAC地址)">
          </div>
         </div>
        </div>
        <div class="form-group">
         <label for="inputPassword3" class="col-sm-2 control-label">金额</label>
         <div class="col-sm-10">
          <div class="input-group">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-usd"></span>
           </div>
           <input type="Texi" class="form-control" id="kd_kh_add_price" placeholder="收取金额">
          </div>
         </div>
        </div>
        <div class="form-group">
         <label for="inputPassword3" class="col-sm-2 control-label">销售员</label>
         <div class="col-sm-10">
          <div class="input-group">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-user"></span>
           </div>
           <input type="Texi" class="form-control" id="kd_kh_add_mname" placeholder="销售员" disabled="disabled" value="<?php echo $_SESSION['username']; ?>">
          </div>
         </div>
        </div>
        <div class="form-group">
         <label for="inputPassword3" class="col-sm-2 control-label">安装人员</label>
         <div class="col-sm-10">
          <div class="input-group">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-user"></span>
           </div>
           <input type="Texi" class="form-control" id="kd_kh_add_zw" placeholder="装维">
          </div>
         </div>
        </div>
        <div class="form-group">
         <label for="inputPassword3" class="col-sm-2 control-label">来源</label>
         <div class="col-sm-10">
          <div class="input-group">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-globe"></span>
           </div>
           <input type="Texi" class="form-control" id="kd_kh_add_source" placeholder="来源">
          </div>
         </div>
        </div>
        <div class="form-group">
         <label for="inputPassword3" class="col-sm-2 control-label">备注</label>
         <div class="col-sm-10">
          <div class="input-group">
           <div class="input-group-addon">
            <span class="glyphicon glyphicon-tags"></span>
           </div>
           <input type="Texi" class="form-control" id="kd_kh_add_remarks" placeholder="备注">
          </div>
         </div>
        </div>
       </form>
      </div>
      <div class="modal-footer">
       <button type="button" class="btn btn-default" data-dismiss="modal"><span class="glyphicon glyphicon-remove"></span> 关闭</button>
       <button type="button" class="btn btn-primary" onclick="kd_kh_add();"><span class="glyphicon glyphicon-ok"></span> 保存</button>
      </div>
     </div>
    </div>
   </div>
   <div class="row placeholders">
    <h3 class="cover-heading">当前共有 <span class="glyphicon glyphicon-user"></span><span style="color:red" id="kh_num_kd">
      <?php num('gwbn_azkh'); ?></span> 名宽带客户 本月已安装：<?php num('gwbn_azkh','time',date("Y-m-")); ?>户</h3>
   </div>
   <h2 class="sub-header">宽带客户信息查询</h2>
    <span class="navbar-form navbar-right" role="form"> <span href="#" id="gwbn_azkh_query_all_click" class="btn btn-danger  btn-lg" style="margin-right: 20px;">查看所有 </span>类型选择：
     <div class="input-group">
      <select class="form-control" id="kd_selecter_kh">
      <option value="name">名字</option>
      <option value="call_main" selected="selected">手机</option>
      <option value="call_bk">座机</option>
      <option value="addr2">小区</option>
      <option value="addr">地址</option>
      <option value="time">时间</option>
      <option value="all">所有</option>
      </select>
     </div>
     <div class="input-group">
      <div class="input-group-addon">
       <span class="glyphicon glyphicon-search"></span>
      </div>
      <input type="text" placeholder="输入您要查找的内容" class="form-control" id="kd_search_kh_val" />
     </div> </span>
    <table class="table table-hover">
     <thead>
      <tr class="alert alert-info">
       <th>姓名</th>
       <th>手机号</th>
       <th>安装时间</th>
       <th>到期时间</th>
       <th>社区名</th>
       <th>详细地址</th>
       <th>宽带速率(M)</th>
       <th>金额</th>
       <th>销售员</th>
       <th>安装人员</th>
       <th>来源</th>
       <th>备注</th>
      </tr>
     </thead>
     <tbody id="kd_search_connent">
     </tbody>
    </table>
   <span style="margin: 0 auto;" id="kd_kh_search_err"></span>
  </div>
